﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net;
using System.Timers;
using System.Net.Sockets;

namespace KouakKore
{
    class KouakPort
    {
        //public bool open;

        //public void ScanPort(IPAddress Address, int Port)
        //{
        //    Timer t = new Timer();
        //    t.Elapsed += new ElapsedEventHandler(t_Elapsed);
        //    t.Interval = 5000;

        //    TcpClient Client = new TcpClient();
        //    try
        //    {
        //        Client.ReceiveTimeout = 2000;
        //        Client.SendTimeout = 2000;
        //        Client.Client.ReceiveTimeout = 2000;
        //        Client.Client.SendTimeout = 2000;
        //        Client.Connect(Address, Port);

        //        NetworkStream ClientStream = Client.GetStream();
        //        ClientStream.Close();
        //        Client.Close();

        //        this.open = true;
        //    }
        //    catch (SocketException sx)
        //    {

        //    }

        //}

        //void t_Elapsed(object sender, ElapsedEventArgs e)
        //{
        //    if (open == null)
        //        open = false;
        //}
    }
}
